<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link type="text/css" href="/css/1pxtable.css" rel="Stylesheet" />	
<link type="text/css" href="/css/start/jquery-ui-1.8.21.custom.css" rel="Stylesheet" />	
<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/js/jquery-ui-1.8.21.custom.min.js"></script>
<script>
	$(function() {
		$( "#date_begin" ).datepicker({ dateFormat: "yy-mm-dd",firstDay: 1 });
		$( "#date_end" ).datepicker({ dateFormat: "yy-mm-dd",firstDay: 1 });
	});
	</script>

    
</head>

<body style="font-family:Arial, Helvetica, sans-serif;">
<p>File format: Pay_yyyy-mm-dd_yyyy-mm-dd.csv</p>
<form action="" method="post" enctype="multipart/form-data" name="form1" id="form1">
  <input type="file" name="file" id="file" />
  <input type="submit" name="btn_file" id="btn_file" value="Upload" />
  <br />
  <br />
  <?php if($this->download){
		echo $this->download;
  }?>
  <br />
</form>

<?php /*?>
<h1>Staff Need To Process</h1>
<?php $type = unserialize(PAYROLL_TYPE);?>
<form action="" method="post">
  Begin Date: 
    <label for="date_begin"></label>
  <input type="text" name="date_begin" id="date_begin" value="<?php echo $this->dateBegin;?>" />
  End Date:
  <input type="text" name="date_end" id="date_end" value="<?php echo $this->dateEnd;?>"/>
  Cycle NO:
  <label for="cycle_no"></label>
  <input type="text" name="cycle_no" id="cycle_no" />
  <br />
  <br />
<br />

  <table width="1000" border="1" cellspacing="0" cellpadding="10">
    <tr>
      <th scope="col">No</th>
      <th scope="col">ID</th>
      <th scope="col">First Name</th>
      <th scope="col">Last Name</th>
      <th scope="col">Nick Name</th>
      <th scope="col">Type</th>
      <th scope="col">Rate</th>
      <th scope="col">Exp Rate</th>
      <th scope="col">Total</th>
      <th scope="col">T/R Bonus</th>
      <th scope="col">Choose
        <input type="checkbox" name="selectall" id="selectall" />
      <label for="selectall"></label></th>
      <th scope="col">Short Pay
        <input type="checkbox" name="shortselectall" id="shortselectall" />
      <label for="shortselectall"></label></th>
    </tr>
    <?php 
	foreach($this->arrRes as $key => $v) {?>
    <tr>
      <td><?php echo $key + 1;?></td>
      <td>
      <input name="id_staff[<?php echo $key;?>]" type="text" id="id_staff_<?php echo $key;?>" style="width:50px;" value="<?php echo $v[0];?>" /></td>
      <td>
        <label for="first_name[]"></label>
      <input type="text" name="first_name[<?php echo $key;?>]" id="first_name_<?php echo $key;?>" value="<?php echo $v[1];?>" style="width:100px;"/></td>
      <td>
      <input type="text" name="last_name[<?php echo $key;?>]" id="last_name_<?php echo $key;?>" value="<?php echo $v[2];?>" style="width:100px;"/></td>
      <td>
      <input type="text" name="nick_name[<?php echo $key;?>]" id="nick_name_<?php echo $key;?>" value="<?php echo $v[7];?>" style="width:70px;"/></td>
      <td><?php echo ($v[3]=='')?'':$type[$v[3]][0];?></td>
      <td>$ <?php echo $v[4];?></td>
      <td>
      $ 
      <input type="text" name="exp_rate[<?php echo $key;?>]" id="exp_rate_<?php echo $key;?>" value="<?php echo $v[5];?>" style="width:100px;"  /></td>
      <td>
      $ 
      <input type="text" name="total_amt[<?php echo $key;?>]" id="total_amt_<?php echo $key;?>" value="<?php echo $v[6];?>"  style="width:50px;"  /></td>
      <td>
      $ 
      <input type="text" name="bonus_amt[<?php echo $key;?>]" id="bonus_amt_<?php echo $key;?>" value="0"  style="width:50px;"  /></td>
      <td align="center"><input type="checkbox" name="sel[<?php echo $key;?>]" id="sel_<?php echo $key;?>" class="aaa" />
      <label for="sel[]"></label></td>
      <td align="center"><input type="checkbox" name="short[<?php echo $key;?>]" id="short_<?php echo $key;?>" class="bbb" />
      <label for="short[]"></label></td>
    </tr>
    <?php }?>
    <tr>
      <th scope="col">No</th>
      <th scope="col">ID</th>
      <th scope="col">First Name</th>
      <th scope="col">Last Name</th>
      <th scope="col">Nick Name</th>
      <th scope="col">Type</th>
      <th scope="col">Rate</th>
      <th scope="col">Ext Rate</th>
      <th scope="col">Total</th>
      <th scope="col">T/R Bonus</th>
      <th scope="col">Choose</th>
      <th scope="col">Short Pay</th>
    </tr>
  </table>
  <pre>
<input type="submit" name="btn_test" id="btn_test" value="TEST" />  <br />   Write Your Comment Or Leave Blank:
     <label for="textarea"></label><textarea  name="comm" id="comm" cols="100" rows="5"></textarea>
  
<input type="submit" name="btn_process" id="btn_process" value="Process Selected" />     
  </pre>
  <h1><br/></h1>
  	<?php // <a href="/rosteraudit/elt-print/cycle/" target="_blank">Print Unconfirmed Roster</a></h1>?>
  <h1><br/>     
    <a href="/timesheet_export/" target="_blank">Click Here to See Result</a></h1>
    
    <?php */?>
</form>
<br/>
<script language="javascript">
$(':checkbox[name=selectall]').click (function () {
  $(':checkbox[class="aaa"]').prop('checked', this.checked);
});

$(':checkbox[name=shortselectall]').click (function () {
	  $(':checkbox[class="bbb"]').prop('checked', this.checked);
	});

</script>
</body>

</html>
